package com.zsj._class;

/**
 * @author zsj
 * @version 1.0
 * @date 2024/5/20 21:05
 * @description
 */
public class ClassLoaderDemo2 {


    public static void main(String[] args) {
        //bootstrap 引导类加载器
        ClassLoader classLoader = String.class.getClassLoader();
        System.out.println(classLoader);

        //bootstrap 引导类加载器
        ClassLoader classLoader1 = System.class.getClassLoader();
        System.out.println(classLoader1);

        Object object = new Object();
        System.out.println(object.getClass().getClassLoader());
        System.out.println(ClassLoaderDemo2.class.getClassLoader());
    }
}
